{% if not thread.closed  %}
    {% if user.is_authenticated %}
    <p>
    <strong>Add Reply</strong>
    </p>
    <form id="add_post_div" action="" method="POST" class="cform">
        {% with post_form as form %}
            {% include "popboard/includes/form.html" %}
        {% endwith %}
        <p>
        <input type="submit" value="Post" />
        </p>
    </form>
    {% else %}
    <p>You need to <a href="{% url auth_login %}?next={{ request.path|urlencode }}#add_post_div">sign in</a> to post messages.</p>
    {% endif %}
{% endif %}
{% if thread.closed %}
    <p>This discussion has been closed by the staff.  You can no longer add posts.</p>
{% endif %}
